.class public final Les/ok$b;
.super Les/ll;
.source "GeneralAdCms.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/ok;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "b"
.end annotation


# instance fields
.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lcom/estrongs/android/pop/app/ad/cn/AdType;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/ad/cn/AdChannel;",
            ">;>;"
        }
    .end annotation
.end field

.field private d:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lcom/estrongs/android/pop/app/ad/cn/AdType;",
            "Les/ok$a;",
            ">;"
        }
    .end annotation
.end field

.field private e:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/ll;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/ok$b;->c:Ljava/util/Map;

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/ok$b;->d:Ljava/util/Map;

    const/16 v0, 0x1388

    .line 4
    iput v0, p0, Les/ok$b;->e:I

    return-void
.end method

.method private a(Ljava/lang/String;)Lcom/estrongs/android/pop/app/ad/cn/AdChannel;
    .locals 1

    .line 29
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_GDT:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 30
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_GDT:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    .line 31
    :cond_0
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_TT:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 32
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_TT:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    .line 33
    :cond_1
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_BAIDU:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 34
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_BAIDU:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    .line 35
    :cond_2
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 36
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    .line 37
    :cond_3
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS1:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 38
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS1:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    .line 39
    :cond_4
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS2:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 40
    sget-object p1, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS2:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object p1

    :cond_5
    const/4 p1, 0x0

    return-object p1
.end method

.method private a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V
    .locals 5

    .line 13
    invoke-virtual {p1}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 14
    invoke-virtual {p2, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p2

    if-eqz p2, :cond_3

    const-string v0, "priority"

    .line 15
    invoke-virtual {p2, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    .line 16
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const/4 v2, 0x0

    if-eqz v0, :cond_1

    .line 17
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-lez v3, :cond_1

    const/4 v3, 0x0

    .line 18
    :goto_0
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v3, v4, :cond_1

    .line 19
    invoke-virtual {v0, v3}, Lorg/json/JSONArray;->optString(I)Ljava/lang/String;

    move-result-object v4

    .line 20
    invoke-direct {p0, v4}, Les/ok$b;->a(Ljava/lang/String;)Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    move-result-object v4

    if-eqz v4, :cond_0

    .line 21
    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 22
    :cond_1
    iget-object v0, p0, Les/ok$b;->c:Ljava/util/Map;

    invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "auto_refresh"

    .line 23
    invoke-virtual {p2, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p2

    .line 24
    new-instance v0, Les/ok$a;

    invoke-direct {v0}, Les/ok$a;-><init>()V

    if-eqz p2, :cond_2

    const-string v1, "enable"

    .line 25
    invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, v0, Les/ok$a;->a:Z

    const-string v1, "count"

    .line 26
    invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v1

    iput v1, v0, Les/ok$a;->b:I

    const-wide/16 v1, 0x0

    const-string v3, "interval"

    .line 27
    invoke-virtual {p2, v3, v1, v2}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;J)J

    move-result-wide v1

    iput-wide v1, v0, Les/ok$a;->c:J

    .line 28
    :cond_2
    iget-object p2, p0, Les/ok$b;->d:Ljava/util/Map;

    invoke-interface {p2, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_3
    return-void
.end method

.method private b(Lorg/json/JSONObject;)V
    .locals 2

    .line 3
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->SPLASH:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 4
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    if-eqz p1, :cond_0

    const/16 v0, 0x1388

    const-string v1, "wait_time"

    .line 5
    invoke-virtual {p1, v1, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Les/ok$b;->e:I

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/app/ad/cn/AdType;)Les/ok$a;
    .locals 1

    .line 1
    iget-object v0, p0, Les/ok$b;->d:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ok$a;

    return-object p1
.end method

.method public a(Lorg/json/JSONObject;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 2
    invoke-super {p0, p1}, Les/ll;->a(Lorg/json/JSONObject;)V

    .line 3
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->SPLASH:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 4
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->HOME_BACK_SPLASH:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 5
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->LOG_RESULT:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 6
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->ANALYSIS_RESULT:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 7
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->CLEANER_RESULT:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 8
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->HOME_FEED:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 9
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->INTER_ANALYSIS_RESULT:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 10
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->INTER_CLEANER_RESULT:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 11
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->REWARD_VIDEO:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    invoke-direct {p0, v0, p1}, Les/ok$b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lorg/json/JSONObject;)V

    .line 12
    invoke-direct {p0, p1}, Les/ok$b;->b(Lorg/json/JSONObject;)V

    return-void
.end method

.method public b()I
    .locals 1

    .line 2
    iget v0, p0, Les/ok$b;->e:I

    return v0
.end method

.method public b(Lcom/estrongs/android/pop/app/ad/cn/AdType;)Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/android/pop/app/ad/cn/AdType;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/ad/cn/AdChannel;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/ok$b;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/List;

    return-object p1
.end method
